import 'package:flutter/material.dart';

class LoginButton extends StatelessWidget {
  final String title;
  final VoidCallback? onPressed;
  final bool enabled;
  const LoginButton(this.title, {Key? key, this.onPressed, this.enabled = true})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialButton(
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
      height: 45,
      onPressed: enabled ? onPressed : null,
      color: Colors.orange,
      disabledColor: Colors.white60,
      child: Text(title, style: TextStyle(color: Colors.white, fontSize: 16)),
    );
  }
}
